//
//  TMLowercaseMacro.m
//  TMLowercase
//
//  Created by Anshu Chimala on 1/1/10.
//  Copyright 2010 Home. All rights reserved.
//

#import "TMLowercaseMacro.h"


@implementation TMLowercaseMacro
@synthesize delegate = _delegate;

static NSString *lipsum = @"Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.";

- (NSString *)title {
	return @"Lower Case Text";
}

- (NSString *)author {
	return @"Anshu Chimala";
}

- (NSString *)description {
	return @"Convert every character of your text to lower case.";
}

- (void)processText:(NSString *)text {
	text = [text lowercaseString];
	_delegate.shouldPasteAfterwards = YES;
	[_delegate macro:self didProcessTextWithResult:text];
}

- (NSString *)beforeText {
	return lipsum;
}

- (NSString *)afterText {
	return [lipsum lowercaseString];
}

@end
